package com.fc.campusapplicationsystem.service;

import com.fc.campusapplicationsystem.mapper.LogsMapper;
import com.fc.campusapplicationsystem.model.Logs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 贺哲
 * @2020-03-02 22:22
 */
@Service
public class LogsServiceImpl implements LogsService {

    @Autowired
    LogsMapper logsMapper;

    @Override
    public List<Logs> list() {
        return logsMapper.selectAll();
    }

    @Override
    public Integer add(Logs logs) {
        return logsMapper.insertSelective(logs);
    }
}
